MediaReceivers

public interface MediaReceivers implements Observable<T>, ProfileService

A service that allows observing media receivers in the environment.

Since

7.29

See also

Functions

Link copied to clipboard
public abstract MediaReceiver await(Predicate<MediaReceiver> predicate)
public abstract MediaReceiver await(Predicate<MediaReceiver> predicate, Duration timeout)
Blocks the current thread until the first receiver matching the predicate is discovered.
Link copied to clipboard
public abstract List<MediaReceiver> list()
Returns the list of connected (not unavailable) media receivers.
Link copied to clipboard
public abstract Subscription on<E extends T>(Class<E> eventClass, Observer<E> observer)
Subscribes the given event observer to receive the events of the given eventClass.
Link copied to clipboard
public abstract Profile profile()
Returns the profile of this service.
Link copied to clipboard
public abstract void refresh()
Asynchronously updates the list of available media receivers.
Link copied to clipboard
public final Subscription subscribe<E extends Event>(Observer<E> observer)
public final Subscription subscribe<E extends Event>(Observer<E> observer)

Subscribes the given observer to receive events of type E from this Observable.